PutListing{externalId}
This request returns a list of all packages.
Request URL
PUT https://api.theownly.io/v1/listings/external/{externalId}
Headers
Name | Value | Required? |
---|---|---|
Accept | application/json | Yes |
Authorization | Bearer{APItoken} | Yes |
Parameters
Name | Type | Required? | Description |
---|---|---|---|
externalId | String | No | Listing External ID |
Example Request
curl -X 'PUT' \
'https://api.theownly.io/v1/listings/external/{externalId}' \
-H 'accept: application/json' \
-H 'Authorization: Bearer {APItoken}' \
-d ' "externalId": "string",
"communityId": "uFMhi7hj",
"modelId": "TbuHj789",
"address": "string",
"availability": "available",
"status": "draft",
"url": "string",
"description": "string",
"price": 0,
"beds": 0,
"baths": 0,
"sizeSqft": 0
}'
Example Response
200 Listing updated
{
"id": "q65lxb59",
"externalId": "string",
"address": "string",
"availability": "available",
"status": "draft",
"url": "string",
"description": "string",
"price": 0,
"beds": 0,
"baths": 0,
"sizeSqft": 0,
"community": {
"id": "uFMhi7hj",
"name": "string",
"subRegion": "string",
"address": "string",
"description": "string",
"websiteUrl": "string",
"city": {
"id": "Eynvv3nd",
"name": "Calgary",
"state": "Alberta"
}
},
"model": {
"id": "TbuHj789",
"name": "string",
"intro": "string",
"beds": 0,
"baths": 0,
"sizeSqft": 0,
"basePrice": 0,
"tourUrl": "string",
"uTourUrl": "string",
"productType": {
"id": "Oo5BqeAm",
"name": "string"
}
},
"reservationUrl": "string"
}